﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace PL_TileEditor
{
    class Enemy : BaseObject
    {
        public string Filename;

        public string Name = "Unknown";
        public string Class = "Unknown";
        public int Level = 0;

        public void SetFile(string szFilename)
        {
            Filename = szFilename;
            //FileStream fsFile = new FileStream("Enemies/" + szFilename, FileMode.Open);
            //BinaryReader br = new BinaryReader(fsFile);
            //Name = br.ReadString();
            //Class = br.ReadString();
            //br.ReadString(); br.ReadString(); br.ReadString(); br.ReadInt32(); br.ReadInt32(); br.ReadInt32(); br.ReadInt32();
            //Level = br.ReadInt32();
        }

        public override void Render(PaintEventArgs e, Point AutoScrollPosition)
        {
            e.Graphics.DrawImage(PL_TileEditor.Properties.Resources.enemy, new Point(m_Position.X - 32 + AutoScrollPosition.X, m_Position.Y - 32 + AutoScrollPosition.Y));
        }

        public override string ToString()
        {

            return Filename;
        }

        public override string GetType()
        {
            return "Enemy";
        }
    }
}
